package io.renren.common.utils;

/**
 * @author tangxs
 * @date 2017/12/13
 */
public enum CodeAndMsg {

    OK(1,"成功"),
    ERROR_LACK_PARAM(-1,"缺少参数"),
    ERROR_USER_NOT_LOGIN(-2,"用户未登录"),
    ERROR_USER_LOGIN(-3,"用户名或密码有误，登录失败"),
    ERROR_REPEAT(-4,"帐号重复"),
    ERROR_PHONE_SEND_CODE_FAIL(-9,"发送验证码失败,请与管理员联系"),
    ERROR_CODE(-10,"验证码错误"),
    ERROR_USER_NOT_NORM(-22,"用户权限不足"),
    ;

    CodeAndMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;
    /**
     * @Package com.dlc.common.utils
     * @Description: CodeAndMsg
     * @Copyright: Copyright (c) 2017
     * Author tangxs
     * @date 2017/12/13 17:12
     * version V1.0.0
     */
    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
